<{extends file="<{$tempdir}>/public/admin.html"}> 
<{block name=extendjs}>
<script src="<{$siteurl}>/templates/<{$tempdir}>/public/js/jquery.PrintArea.js" type="text/javascript" language="javascript"></script>
<script src="<{$siteurl}>/templates/<{$tempdir}>/public/js/datepicker/WdatePicker.js" type="text/javascript" language="javascript"></script>
<script src="<{$siteurl}>/templates/<{$tempdir}>/public/js/datepicker/WdatePicker.js" type="text/javascript" language="javascript"></script>
<{/block}>
 <{block name=controlname}>退款申请列表<{/block}>
 <{block name=bodylist}>
    <div style="width:auto;overflow-x:hidden;overflow-y:auto"> 
      	 <div class="search">
      		 
            
            <div class="search_content">
            	 
            	 <form method="post" name="form1" action="<{ofunc type=url link="/adminpage/order/module/drawbacklog"}>">
            	  <label>查询类型：</label>
            	  <select name="querytype">
            	  	<option value="0">未选择</option>
            	  	<option value="username"  <{if $querytype == 'username'}>selected<{/if}>>用户</option>
            	  </select>
            	  <label>查询条件：</label>
            	   <input type="text" name="searchvalue" value="<{$searchvalue}>">
            	    	   
            	   <select name="orderstatus">
            	   	  <option value="all">选择订单状态</option> 
			   		 	  	  <option value="1" <{if $orderstatus == '1'}>selected<{/if}>>待处理</option>
			   		 	  	  <option value="2" <{if $orderstatus == '2'}>selected<{/if}>>已退款</option>
			   		 	      <option value="3" <{if $orderstatus == '3'}>selected<{/if}>>拒退款</option> 
            	  </select>
            	  
            	   从<input class="Wdate datefmt" type="text" name="starttime" id="starttime" value="<{$starttime|date_format:"%Y-%m-%d"}>"  onFocus="WdatePicker({isShowClear:false,readOnly:true});" />  
			   		 	  到<input class="Wdate datefmt" type="text" name="endtime" id="endtime" value="<{$endtime|date_format:"%Y-%m-%d"}>"  onFocus="WdatePicker({isShowClear:false,readOnly:true});" />                  

            	  
            	    <input type="submit" value="提交查询" class="button">  
            	 
            	 </form>
            </div>
        
      	</div>
           <div class="tags"> 
          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td" >

              <form method="post" action="" onsubmit="return remind();"  id="delform">

                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>  
                        <th align="center">会员名</th>

                        <th align="center">退款原因</th> 
                        <th align="center">金额</th> 
                        <th align="center">退款详细说明</th>                      
                        <th align="center">商家确认状态</th>                      
                        <th align="center">退款状态</th>                      
                        <th align="center">操作</th>

                      </tr>

                    </thead> 
 
                     <tbody>

                      <{foreach from=$list item=items}> 
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff"> 
                        
                        <td align="center"><{$items['username']}></td> 
                        <td align="center"> <{$items['reason']}> </td> 
                        <td align="center"><{$items['cost']}></td>  
                        <td align="center"><{$items['content']}></td> 
                        <td align="center">
						<{if $items['type'] ==0  }>待处理<{/if}>
						<{if $items['type'] ==1  }>商家已同意退款<{/if}>
						<{if $items['type'] ==2  }>商家拒绝退款<{/if}>
						</td> 
                        <td align="center">
						<{if $items['orderinfo']['is_reback'] ==1  }>待处理<{/if}>
						<{if $items['orderinfo']['is_reback'] ==2  }>已退款给用户<{/if}>
						<{if $items['orderinfo']['is_reback'] ==3  }>拒绝退款给用户<{/if}>
						</td> 
                       
                        <td align="center"> 
                        	 <{if empty($items['status'])}>
                        	    <a href="<{ofunc type=url link="/adminpage/order/module/showdrawbacklog/id/<{$items['id']}>"}>">处理</a>
                        	 <{elseif $items['status'] == 1}>
                        	     已退款
                        	    <br> <a href="<{ofunc type=url link="/adminpage/order/module/showdrawbacklog/id/<{$items['id']}>"}>">查看详细</a>
                        	 <{elseif $items['status'] ==  2}>
                        	     退款失败
                        	      <br> <a href="<{ofunc type=url link="/adminpage/order/module/showdrawbacklog/id/<{$items['id']}>"}>">查看详细</a>
                        	 <{/if}>
                        	</td> 
                      </tr> 
                       <{/foreach}> 

                    </tbody> 

                  </table>

                <div class="blank20"></div> 

                </form>

                <div class="page_newc">
                 	      <div class="select_page">  </div>
                       <div class="show_page"><ul><{$pagecontent}></ul></div>
                 </div>

                <div class="blank20"></div>

              </div>

            </div>

          </div> 

        </div>

        
  </div>
  
  
  
  
 
 </div> 
  
<{/block}>